#include "stdlib.h"

void func() {
    int *p = malloc(sizeof(int));
    *p = 1;
    int **q = malloc(sizeof(int *));
    *q = p;
    free(q);
}
